home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / DEV / I-Z / Lex.cpt / Lex / STDIO_LEXLIB.π folder / LEXERR.C < prev    next >
Text File  |  1990-06-03  |  1KB  |  40 lines

  1. /*
  2.   HEADER: CUG    nnn.nn;
  3.   TITLE:    LEX - A Lexical Analyser Generator
  4.   VERSION:       1.0 for IBM-PC
  5.   DATE:    Jan 30, 1985
  6.   DESCRIPTION:   A Lexical Analyser Generator. From UNIX
  7.   KEYWORDS:      Lexical Analyser Generator YACC C PREP
  8.   SYSTEM:    IBM-PC and Compatiables
  9.   FILENAME:      LEXERR.C
  10.   WARNINGS:      This program is not for the casual user. It will
  11.     be useful primarily to expert developers.
  12.   CRC:    N/A
  13.   SEE-ALSO:      YACC and PREP
  14.   AUTHORS:       Scott Guthery 11100 leafwood lane Austin, TX 78750
  15.   COMPILERS:     DESMET-C
  16.   REFERENCES:    UNIX Systems Manuals
  17. */
  18. /*
  19.  * Bob Denny 28-Aug-82  Move stdio dependencies to lexerr(), lexget(),
  20.  *    lexech() and mapch(). This is one of 4 modules
  21.  *    in lexlib which depend upon the standard I/O package.
  22.  * Scott Guthery 20-Nov-83  Adapt for IBM PC & DeSmet C
  23.  */
  24. #define    STDIO_LEXLIB
  25.  
  26. #include <stdio.h>
  27. #include "lex.h"
  28.  
  29. extern SHORTINT yyline;
  30.  
  31. void
  32. lexerror(s, arg1, arg2, arg3)
  33. char *s;
  34. SHORTINT arg1, arg2, arg3;
  35. {
  36.     if (yyline)
  37.         fprintf(stderr, (char *)"\n%d: ", yyline);
  38.     fprintf(stderr, s, arg1, arg2, arg3);
  39. }
  40.